import { ElMessage } from 'element-plus'

//可关闭提示消息
export const success = (msg: string) => {
    ElMessage({
      showClose: true,
      message: msg,
      type: 'success',
    })
  }

export  const error = (msg: string) => {
    ElMessage({
      showClose: true,
      message: msg,
      type: 'error',
    })
  }

export  const warning = (msg: string) => {
    ElMessage({
      showClose: true,
      message: msg,
      type: 'warning',
    })
  }

export  const info = (msg: string) => {
    ElMessage({
      showClose: true,
      message: msg,
      type: 'info',
    })
}